package thinkinjava1.ch10;

import java.io.*;

/**
 * Created by BobbyGu on 2017/2/23.
 */
public class InFile extends DataInputStream {
    public InFile(String filename)
            throws FileNotFoundException {
        super(new BufferedInputStream(
                new FileInputStream(filename)));
    }

    public InFile(File file)
            throws FileNotFoundException {
        this(file.getPath());
    }
}